GET api/Search?userGuid={userGuid}&ApiKey={ApiKey}&Article={Article}&Brand={Brand}&Sources[0]={Sources[0]}&Sources[1]={Sources[1]}&includeAnalogs={includeAnalogs}&ContragentGuid={ContragentGuid}
Поиск по бренду и артикулу. Возвращает цены и наличие
Информация о запросе
URI параметры
Имя | Описание | Тип | Дополнительная информация |
---|---|---|---|
userGuid |
Ваш UserGuid |
globally unique identifier |
Required |
ApiKey |
Ваш ApiKey |
string |
Required |
Article |
Артикул |
string |
Required |
Brand |
Бренд |
string |
Required |
Sources |
Массив источников товаров 1 - Товары в наличии на складах Phaeton 2 - Товары локальных поставщиков 3 - Товары удаленных поставщиков |
Коллекция ProdutsSource |
Required |
includeAnalogs |
Включить аналоги в результат (если в Sources задано значение 3, то аналоги будут включены в любом случае) |
boolean |
Default value is True |
ContragentGuid |
Guid контрагента, если не задан будет использован контрагент пользователя по умолчанию |
globally unique identifier |
Нет. |
Параметры тела запроса
Нет.
Пример запроса
/api/Search?Article=1002101&Brand=LEMFORDER&Sources[]=1&Sources[]=2&Sources[]=3&includeAnalogs=true&UserGuid=00000000-0000-0000-0000-000000000000&ApiKey=dss333dddd333
Информация об ответе
Описание ресурсов
Возвращает список найденных товаров
SearchProductResponseИмя | Описание | Тип | Дополнительная информация |
---|---|---|---|
Items |
Список товаров |
Коллекция ProductItem |
Нет. |
IsError |
Указывает завершился ли запрос с ошибкой или нет |
boolean |
Нет. |
ErrorMessage |
Сообщение об ошибке |
string |
Нет. |
Форматы ответа
application/json, text/json
Пример:
{ "Items": [ { "CleanArticle": "sample string 1", "Presence": "sample string 2", "Price": 3, "CurrencyCode": "sample string 4", "ExpectedShipmentDays": 5, "GuaranteedShipmentDays": 6, "CountInPack": 7, "WarehouseId": "2fe1becf-7356-4d87-aac8-8ce807ae21bb", "Warehouse": "sample string 9", "Unit": "sample string 10", "CategoryId": "c97d6b51-36d9-44e3-a16d-b6d9ca86a816", "ItemId": "4842d4c3-0905-4fc8-a5ac-a3c5b209d0d1", "Discount": "sample string 13", "TotalDiscount": 14, "PriceWithoutDiscount": 15, "IsnotProduced": "sample string 16", "AvailableCount": 17, "SupplierId": 1, "ExpectedDelivery": 1, "GuaranteedDelivery": 1, "DeliveryProbability": 1.1, "Offers": [ { "ImageUrl": "sample string 1", "Attributes": [ { "Name": "sample string 1", "Value": "sample string 2", "Value1CGuid": "sample string 3", "IsChecked": true }, { "Name": "sample string 1", "Value": "sample string 2", "Value1CGuid": "sample string 3", "IsChecked": true } ], "ArticleNumber": "sample string 2", "CleanArticleNumber": "samplestring2", "BrandName": "sample string 3", "CleanBrandName": "samplestring3", "Name": "sample string 4", "WarehouseName": "sample string 5", "Warehouse1CGuid": "209853d4-1a7d-470c-9235-f078eae9b621", "Category1CGuid": "a13a803b-9356-447c-8b86-5c086db7c8b4", "AgentContract1CGuid": "5399ef0b-dfab-4842-ad87-38795fef51e0", "ExpectedDelivery": 9, "GuaranteedDelivery": 10, "AvailableCount": 11, "ViewAvailableCount": "sample string 12", "SupplierId": 1, "SupplierCode": "sample string 13", "PriceWithoutDiscount": 1.0, "Discount": 14.0, "Price": 15.0, "PriceStr": "15", "BasePrice": 16.0, "SupplierPrice": 1.0, "ArtificialPrice": 17.0, "ArtificialPriceStr": "17", "ShowDiscount": true, "Unit": "sample string 19", "MinSize": 20.0, "CurrencySymbol": "sample string 21", "Count": 22, "Product1CGuid": "73be4f27-71f6-49d9-a5bb-e649b589b3df", "IsCross": true, "IsSaleItem": true, "ExpectedDate": "sample string 26", "DeliveryProbability": 27.1, "DeliveryProbabilityStr": "27%" }, { "ImageUrl": "sample string 1", "Attributes": [ { "Name": "sample string 1", "Value": "sample string 2", "Value1CGuid": "sample string 3", "IsChecked": true }, { "Name": "sample string 1", "Value": "sample string 2", "Value1CGuid": "sample string 3", "IsChecked": true } ], "ArticleNumber": "sample string 2", "CleanArticleNumber": "samplestring2", "BrandName": "sample string 3", "CleanBrandName": "samplestring3", "Name": "sample string 4", "WarehouseName": "sample string 5", "Warehouse1CGuid": "209853d4-1a7d-470c-9235-f078eae9b621", "Category1CGuid": "a13a803b-9356-447c-8b86-5c086db7c8b4", "AgentContract1CGuid": "5399ef0b-dfab-4842-ad87-38795fef51e0", "ExpectedDelivery": 9, "GuaranteedDelivery": 10, "AvailableCount": 11, "ViewAvailableCount": "sample string 12", "SupplierId": 1, "SupplierCode": "sample string 13", "PriceWithoutDiscount": 1.0, "Discount": 14.0, "Price": 15.0, "PriceStr": "15", "BasePrice": 16.0, "SupplierPrice": 1.0, "ArtificialPrice": 17.0, "ArtificialPriceStr": "17", "ShowDiscount": true, "Unit": "sample string 19", "MinSize": 20.0, "CurrencySymbol": "sample string 21", "Count": 22, "Product1CGuid": "73be4f27-71f6-49d9-a5bb-e649b589b3df", "IsCross": true, "IsSaleItem": true, "ExpectedDate": "sample string 26", "DeliveryProbability": 27.1, "DeliveryProbabilityStr": "27%" } ], "Parameters": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "Using": "sample string 18", "PhotoItem": "sample string 19", "Brand": "sample string 20", "Article": "sample string 21", "Name": "sample string 22" }, { "CleanArticle": "sample string 1", "Presence": "sample string 2", "Price": 3, "CurrencyCode": "sample string 4", "ExpectedShipmentDays": 5, "GuaranteedShipmentDays": 6, "CountInPack": 7, "WarehouseId": "2fe1becf-7356-4d87-aac8-8ce807ae21bb", "Warehouse": "sample string 9", "Unit": "sample string 10", "CategoryId": "c97d6b51-36d9-44e3-a16d-b6d9ca86a816", "ItemId": "4842d4c3-0905-4fc8-a5ac-a3c5b209d0d1", "Discount": "sample string 13", "TotalDiscount": 14, "PriceWithoutDiscount": 15, "IsnotProduced": "sample string 16", "AvailableCount": 17, "SupplierId": 1, "ExpectedDelivery": 1, "GuaranteedDelivery": 1, "DeliveryProbability": 1.1, "Offers": [ { "ImageUrl": "sample string 1", "Attributes": [ { "Name": "sample string 1", "Value": "sample string 2", "Value1CGuid": "sample string 3", "IsChecked": true }, { "Name": "sample string 1", "Value": "sample string 2", "Value1CGuid": "sample string 3", "IsChecked": true } ], "ArticleNumber": "sample string 2", "CleanArticleNumber": "samplestring2", "BrandName": "sample string 3", "CleanBrandName": "samplestring3", "Name": "sample string 4", "WarehouseName": "sample string 5", "Warehouse1CGuid": "209853d4-1a7d-470c-9235-f078eae9b621", "Category1CGuid": "a13a803b-9356-447c-8b86-5c086db7c8b4", "AgentContract1CGuid": "5399ef0b-dfab-4842-ad87-38795fef51e0", "ExpectedDelivery": 9, "GuaranteedDelivery": 10, "AvailableCount": 11, "ViewAvailableCount": "sample string 12", "SupplierId": 1, "SupplierCode": "sample string 13", "PriceWithoutDiscount": 1.0, "Discount": 14.0, "Price": 15.0, "PriceStr": "15", "BasePrice": 16.0, "SupplierPrice": 1.0, "ArtificialPrice": 17.0, "ArtificialPriceStr": "17", "ShowDiscount": true, "Unit": "sample string 19", "MinSize": 20.0, "CurrencySymbol": "sample string 21", "Count": 22, "Product1CGuid": "73be4f27-71f6-49d9-a5bb-e649b589b3df", "IsCross": true, "IsSaleItem": true, "ExpectedDate": "sample string 26", "DeliveryProbability": 27.1, "DeliveryProbabilityStr": "27%" }, { "ImageUrl": "sample string 1", "Attributes": [ { "Name": "sample string 1", "Value": "sample string 2", "Value1CGuid": "sample string 3", "IsChecked": true }, { "Name": "sample string 1", "Value": "sample string 2", "Value1CGuid": "sample string 3", "IsChecked": true } ], "ArticleNumber": "sample string 2", "CleanArticleNumber": "samplestring2", "BrandName": "sample string 3", "CleanBrandName": "samplestring3", "Name": "sample string 4", "WarehouseName": "sample string 5", "Warehouse1CGuid": "209853d4-1a7d-470c-9235-f078eae9b621", "Category1CGuid": "a13a803b-9356-447c-8b86-5c086db7c8b4", "AgentContract1CGuid": "5399ef0b-dfab-4842-ad87-38795fef51e0", "ExpectedDelivery": 9, "GuaranteedDelivery": 10, "AvailableCount": 11, "ViewAvailableCount": "sample string 12", "SupplierId": 1, "SupplierCode": "sample string 13", "PriceWithoutDiscount": 1.0, "Discount": 14.0, "Price": 15.0, "PriceStr": "15", "BasePrice": 16.0, "SupplierPrice": 1.0, "ArtificialPrice": 17.0, "ArtificialPriceStr": "17", "ShowDiscount": true, "Unit": "sample string 19", "MinSize": 20.0, "CurrencySymbol": "sample string 21", "Count": 22, "Product1CGuid": "73be4f27-71f6-49d9-a5bb-e649b589b3df", "IsCross": true, "IsSaleItem": true, "ExpectedDate": "sample string 26", "DeliveryProbability": 27.1, "DeliveryProbabilityStr": "27%" } ], "Parameters": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "Using": "sample string 18", "PhotoItem": "sample string 19", "Brand": "sample string 20", "Article": "sample string 21", "Name": "sample string 22" } ], "IsError": true, "ErrorMessage": "sample string 2" }
multipart/form-data
Пример:
{"Items":[{"CleanArticle":"sample string 1","Presence":"sample string 2","Price":3,"CurrencyCode":"sample string 4","ExpectedShipmentDays":5,"GuaranteedShipmentDays":6,"CountInPack":7,"WarehouseId":"2fe1becf-7356-4d87-aac8-8ce807ae21bb","Warehouse":"sample string 9","Unit":"sample string 10","CategoryId":"c97d6b51-36d9-44e3-a16d-b6d9ca86a816","ItemId":"4842d4c3-0905-4fc8-a5ac-a3c5b209d0d1","Discount":"sample string 13","TotalDiscount":14,"PriceWithoutDiscount":15,"IsnotProduced":"sample string 16","AvailableCount":17,"SupplierId":1,"ExpectedDelivery":1,"GuaranteedDelivery":1,"DeliveryProbability":1.1,"Offers":[{"ImageUrl":"sample string 1","Attributes":[{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true},{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true}],"ArticleNumber":"sample string 2","CleanArticleNumber":"samplestring2","BrandName":"sample string 3","CleanBrandName":"samplestring3","Name":"sample string 4","WarehouseName":"sample string 5","Warehouse1CGuid":"209853d4-1a7d-470c-9235-f078eae9b621","Category1CGuid":"a13a803b-9356-447c-8b86-5c086db7c8b4","AgentContract1CGuid":"5399ef0b-dfab-4842-ad87-38795fef51e0","ExpectedDelivery":9,"GuaranteedDelivery":10,"AvailableCount":11,"ViewAvailableCount":"sample string 12","SupplierId":1,"SupplierCode":"sample string 13","PriceWithoutDiscount":1.0,"Discount":14.0,"Price":15.0,"PriceStr":"15","BasePrice":16.0,"SupplierPrice":1.0,"ArtificialPrice":17.0,"ArtificialPriceStr":"17","ShowDiscount":true,"Unit":"sample string 19","MinSize":20.0,"CurrencySymbol":"sample string 21","Count":22,"Product1CGuid":"73be4f27-71f6-49d9-a5bb-e649b589b3df","IsCross":true,"IsSaleItem":true,"ExpectedDate":"sample string 26","DeliveryProbability":27.1,"DeliveryProbabilityStr":"27%"},{"ImageUrl":"sample string 1","Attributes":[{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true},{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true}],"ArticleNumber":"sample string 2","CleanArticleNumber":"samplestring2","BrandName":"sample string 3","CleanBrandName":"samplestring3","Name":"sample string 4","WarehouseName":"sample string 5","Warehouse1CGuid":"209853d4-1a7d-470c-9235-f078eae9b621","Category1CGuid":"a13a803b-9356-447c-8b86-5c086db7c8b4","AgentContract1CGuid":"5399ef0b-dfab-4842-ad87-38795fef51e0","ExpectedDelivery":9,"GuaranteedDelivery":10,"AvailableCount":11,"ViewAvailableCount":"sample string 12","SupplierId":1,"SupplierCode":"sample string 13","PriceWithoutDiscount":1.0,"Discount":14.0,"Price":15.0,"PriceStr":"15","BasePrice":16.0,"SupplierPrice":1.0,"ArtificialPrice":17.0,"ArtificialPriceStr":"17","ShowDiscount":true,"Unit":"sample string 19","MinSize":20.0,"CurrencySymbol":"sample string 21","Count":22,"Product1CGuid":"73be4f27-71f6-49d9-a5bb-e649b589b3df","IsCross":true,"IsSaleItem":true,"ExpectedDate":"sample string 26","DeliveryProbability":27.1,"DeliveryProbabilityStr":"27%"}],"Parameters":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"Using":"sample string 18","PhotoItem":"sample string 19","Brand":"sample string 20","Article":"sample string 21","Name":"sample string 22"},{"CleanArticle":"sample string 1","Presence":"sample string 2","Price":3,"CurrencyCode":"sample string 4","ExpectedShipmentDays":5,"GuaranteedShipmentDays":6,"CountInPack":7,"WarehouseId":"2fe1becf-7356-4d87-aac8-8ce807ae21bb","Warehouse":"sample string 9","Unit":"sample string 10","CategoryId":"c97d6b51-36d9-44e3-a16d-b6d9ca86a816","ItemId":"4842d4c3-0905-4fc8-a5ac-a3c5b209d0d1","Discount":"sample string 13","TotalDiscount":14,"PriceWithoutDiscount":15,"IsnotProduced":"sample string 16","AvailableCount":17,"SupplierId":1,"ExpectedDelivery":1,"GuaranteedDelivery":1,"DeliveryProbability":1.1,"Offers":[{"ImageUrl":"sample string 1","Attributes":[{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true},{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true}],"ArticleNumber":"sample string 2","CleanArticleNumber":"samplestring2","BrandName":"sample string 3","CleanBrandName":"samplestring3","Name":"sample string 4","WarehouseName":"sample string 5","Warehouse1CGuid":"209853d4-1a7d-470c-9235-f078eae9b621","Category1CGuid":"a13a803b-9356-447c-8b86-5c086db7c8b4","AgentContract1CGuid":"5399ef0b-dfab-4842-ad87-38795fef51e0","ExpectedDelivery":9,"GuaranteedDelivery":10,"AvailableCount":11,"ViewAvailableCount":"sample string 12","SupplierId":1,"SupplierCode":"sample string 13","PriceWithoutDiscount":1.0,"Discount":14.0,"Price":15.0,"PriceStr":"15","BasePrice":16.0,"SupplierPrice":1.0,"ArtificialPrice":17.0,"ArtificialPriceStr":"17","ShowDiscount":true,"Unit":"sample string 19","MinSize":20.0,"CurrencySymbol":"sample string 21","Count":22,"Product1CGuid":"73be4f27-71f6-49d9-a5bb-e649b589b3df","IsCross":true,"IsSaleItem":true,"ExpectedDate":"sample string 26","DeliveryProbability":27.1,"DeliveryProbabilityStr":"27%"},{"ImageUrl":"sample string 1","Attributes":[{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true},{"Name":"sample string 1","Value":"sample string 2","Value1CGuid":"sample string 3","IsChecked":true}],"ArticleNumber":"sample string 2","CleanArticleNumber":"samplestring2","BrandName":"sample string 3","CleanBrandName":"samplestring3","Name":"sample string 4","WarehouseName":"sample string 5","Warehouse1CGuid":"209853d4-1a7d-470c-9235-f078eae9b621","Category1CGuid":"a13a803b-9356-447c-8b86-5c086db7c8b4","AgentContract1CGuid":"5399ef0b-dfab-4842-ad87-38795fef51e0","ExpectedDelivery":9,"GuaranteedDelivery":10,"AvailableCount":11,"ViewAvailableCount":"sample string 12","SupplierId":1,"SupplierCode":"sample string 13","PriceWithoutDiscount":1.0,"Discount":14.0,"Price":15.0,"PriceStr":"15","BasePrice":16.0,"SupplierPrice":1.0,"ArtificialPrice":17.0,"ArtificialPriceStr":"17","ShowDiscount":true,"Unit":"sample string 19","MinSize":20.0,"CurrencySymbol":"sample string 21","Count":22,"Product1CGuid":"73be4f27-71f6-49d9-a5bb-e649b589b3df","IsCross":true,"IsSaleItem":true,"ExpectedDate":"sample string 26","DeliveryProbability":27.1,"DeliveryProbabilityStr":"27%"}],"Parameters":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"Using":"sample string 18","PhotoItem":"sample string 19","Brand":"sample string 20","Article":"sample string 21","Name":"sample string 22"}],"IsError":true,"ErrorMessage":"sample string 2"}